package com.ndp.fb.walle.business;

import com.ndp.fb.exception.BusinessException;
import com.ndp.fb.rdb.model.Pager;
import com.ndp.fb.rdb.model.PublishBatch;
import com.ndp.fb.walle.model.bo.publishbatch.result.PublishBatchDetailBo;
import com.ndp.fb.walle.model.vo.publishbatch.result.PublishBatchDetailInfoResult;

import java.util.List;

/**
 * Created by Administrator on 2014/10/23.
 */
public interface PublishBatchService {

    Pager<PublishBatchDetailBo> findAllPublishBatchByUserId(String userId, Integer start, Integer noSize) throws BusinessException;



    List<PublishBatch> searchPublishBatchByNameAndUserId(String batchName, String userId) throws BusinessException;


    /**
     * 根据Id列表查询批次列表
     *
     * @param userId
     * @param ids
     * @return
     * @discription
     * @author yanghao
     * 创建时间 2014年12月25日 下午2:03:22
     */
    List<PublishBatchDetailBo> findPublishBatchByIdsAndUserId(String userId, Long[] ids) throws BusinessException;




    /**
     * 根据id查询发布批次详情
     */
    PublishBatchDetailInfoResult searchPublishBatchDetailInfoById(Long id);

    /**
     * 失败批次重试
     */
    void retry(Long batchId, String userId);
}